package com.ply.dao;

import com.ply.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;


public interface UserDao extends JpaRepository<User,Integer>, JpaSpecificationExecutor<User> {

    /**
     * 通过用户名查找用户
     * @param username
     * @return User实体
     */
    User findByUsername(String username);




}
